const app = getApp()
Page({
  data: {
    domainName: app.domainName,
    users:[]
  },
  onLoad() {
    var _this=this;
    wx.request({
      url: app.domainName + 'web/?c=getme',
      method: 'POST',
      data: {openid:app.globalData.openid}, header: { 'content-type': 'application/x-www-form-urlencoded' },
      success: function (res) {
    
           _this.setData({users:res.data.u})
      }});
  },
 
  popMsg(msg){
    wx.showToast({
      title: msg,
      icon: 'none',
      duration: 1500
    })
  }
 
})
